import phRequest from "./index"
// export function getBanners(data){
//     return phRequest.get('/banner',{data})
// }
// export function getRanKings(idx){
//     return phRequest.get("/top/list", {
//         idx
//       })
// } 
export const getBanners = (data) => phRequest.get('/banner', {
    data
})
export const getRanKings = (idx) => phRequest.get('/top/list', {
    idx
})

export const getSongMenu = (cat='全部',limit=6,offset=0)=> phRequest.get('/top/playlist',{cat,limit,offset})